﻿Imports System.ComponentModel
Imports DAL
Imports System.Linq
Public Class PlageGrille
    Private Shared _newID As Integer = 1
    Public ReadOnly ID As Integer
    Public Position As Point
    Public Taille As Size
    Public Selected As Boolean
    Public Couleur As Color
    Public TabOrder As Integer = 0
    Public plage As PlageHoraire
    Public tabed As Boolean = False
    Public ScreenBound As Rectangle = New Rectangle(0, 0, 1, 1)
    Public Image As Bitmap = Nothing
    Private _Hidden As Boolean
    Public SurConge As Boolean = False
    Public Property Hidden() As Boolean
        Get
            Return _Hidden
        End Get
        Set(ByVal value As Boolean)
            _Hidden = value
        End Set
    End Property


    Public Sub New()
        ID = _newID
        _newID += 1
    End Sub
    Public Sub New(ByVal plage As PlageHoraire)
        ID = _newID
        _newID += 1
        Me.plage = plage
        'Me.plage = New PlageHoraire
        'Me.plage.ID = plage.ID
        'Me.plage.Employe = plage.Employe
        'Me.plage.Horaire = plage.Horaire
        'Me.plage.Nom = plage.Nom
        'Me.plage.Note = plage.Note
        'Me.plage.QuartArriere = plage.QuartArriere
        'Me.plage.Accompagnement = plage.Accompagnement
        'Me.plage.Beneficiaire = plage.Beneficiaire
        'Me.plage.Couleur = plage.Couleur
        'Me.plage.Duree = plage.Duree
        'Me.plage.Date = plage.Date
    End Sub


End Class
